package com.button.boot.mail.model;

import java.io.Serializable;
import java.util.Arrays;

public class MailModel implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private String from;
	private String[] to;
	private String subject;
	private String content;
	private String resourcePath;  //附件路径,资源等的路径
	private String resourceId;  //
	
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public String[] getTo() {
		return this.to;
	}
	public void setTo(String to) {
		this.to = new String[] {to};
	}
	public void setTo(String... to) {
		this.to = to;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getResourcePath() {
		return resourcePath;
	}
	public void setResourcePath(String resourcePath) {
		this.resourcePath = resourcePath;
	}
	public String getResourceId() {
		return resourceId;
	}
	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}
	@Override
	public String toString() {
		return "MailModel [from=" + from + ", to=" + Arrays.toString(to) + ", subject=" + subject + ", content="
				+ content + ", resourcePath=" + resourcePath + ", resourceId=" + resourceId + "]";
	}
}
